import request from '@/utils/request'

// 产品下拉
export function listProductSelect() {
    return request({
        url: '/app-api/device/product/select',
        method: 'get',
    })
}

// 产品-详情
export function getDeviceProduct(deviceId) {
    return request({
        url: '/app-api/device/product/get?id='+deviceId,
        method: 'get',
    })
}

// 设备实例属性-列表

export function listInstanceProperty(query) {
    return request({
        url: '/app-api/device/instance-property/list',
        method: 'get',
        params: query
    })
}
// 设备实例-方法调用

export function instanceFunctionInvoke(data) {
    return request({
        url: '/app-api/device/instance/function-invoke',
        method: 'post',
        data: data
    })
}
